package com.lazy.develop.generator.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import io.swagger.annotations.ApiModelProperty;

public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    
	@ApiModelProperty(name = "id" , value = "用户ID")
    private Long id;

	@ApiModelProperty(name = "loginName" , value = "用户登录名")
    private String loginName;

	@ApiModelProperty(name = "password" , value = "用户密码")
    private String password;

	@ApiModelProperty(name = "level" , value = "用户级别")
    private Long level;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(name = "createTime" , value = "用户创建时间")
    private Date createTime;

	@ApiModelProperty(name = "note" , value = "说明")
    private String note;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public Long getLevel() {
        return level;
    }

    public void setLevel(Long level) {
        this.level = level;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }
}